/**
 * 
 */
package game.kill.exception;

/**
 * @author leiruiqi
 *
 */
public class KillException extends RuntimeException{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 680706060043589101L;
	
	private KillErrorCode errorCode;
	
	private String message;
	
	public KillErrorCode getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(KillErrorCode errorCode) {
		this.errorCode = errorCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public KillException(KillErrorCode errorCode) {
        this.errorCode = errorCode;
    }

    public KillException(KillErrorCode errorCode, String message) {
        this.message = message;
        this.errorCode = errorCode;
    }  
    
    public enum KillErrorCode{
    	
    	PARAM_ERROR,
    	
    	SYS_ERROR,
    	
    	STATUE_ERROR,
    	
    	ROLE_ERROR,
    	
    	;
    }
}
